package com.example.tools;

import android.os.SystemClock;

public class ShowWrongImage implements Runnable{
    public interface TODO{
        void todo1();
        void todo2();
        void todo3();
    }
    private final TODO todo;
    public ShowWrongImage(TODO todo1){
        todo=todo1;
    }
    /**
     * When an object implementing interface <code>Runnable</code> is used
     * to create a thread, starting the thread causes the object's
     * <code>run</code> method to be called in that separately executing
     * thread.
     * <p>
     * The general contract of the method <code>run</code> is that it may
     * take any action whatsoever.
     *
     * @see Thread#run()
     */
    @Override
    public void run() {
        todo.todo1();
        todo.todo2();
        SystemClock.sleep(1000);
        todo.todo3();
    }
}
